package Computer.Event;
import Computer.Main.*;

public class Jump implements Instruction {

	private int pos;
	
	public Jump(int pos) {
		this.pos = pos;
	}
	
	@Override
	public void execute(Memory memory, ProgramCounter counter) {
		counter.setNextAddress(pos);		
	}
	
	public String toString() {
		return "JMP " + pos;
	}

}
